package com.online.college.core.pay.service.impl;

import com.online.college.core.pay.dao.PayOrderDao;
import com.online.college.core.pay.domain.PayOrders;
import com.online.college.core.pay.service.IPayOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayOrderServiceImpl implements IPayOrderService {

	@Autowired
	private PayOrderDao payOrderDao;

	@Override
	public PayOrders getById(String id) {

		return payOrderDao.getById(id);
	}

	@Override
	public List<PayOrders> queryListByUserId(String userId) {
		return payOrderDao.queryListByUserId(userId);
	}

	@Override
	public void createSelectivity(PayOrders payOrders) {
		payOrderDao.createSelectivity(payOrders);
	}

    @Override
    public void updatePayOrder(PayOrders entity) {
        payOrderDao.updatePayOrder(entity);
    }

    @Override
    public void delete(PayOrders entity) {
        payOrderDao.delete(entity);
    }

    @Override
    public void deleteLogic(PayOrders entity) {
        payOrderDao.deleteLogic(entity);
    }


}


